#ifndef TRAINROAD_H
#define TRAINROAD_H
#include <QString>
#include <QTime>

class TrainRoad
{
public:
	TrainRoad();
	TrainRoad & setName(const QString & name)
	{
		this->nameStationData = name;
		return *this;
	}
	TrainRoad & setTimeEnd(const QTime & timeEnd)
	{
		this->timeEndData = timeEnd;
		return *this;
	}
	TrainRoad & setTimeStart(const QTime & timeStart)
	{
		this->timeStartData = timeStart;
		return *this;
	}
	TrainRoad & setTimeInRoad(const QTime & road)
	{
		this->inRoadData = road;
		return *this;
	}
	QString getNameStation()const{return this->nameStationData;}
	QTime getTimeEnd()const{return this->timeEndData;}
	QTime getTimStart()const {return this->timeStartData;}
	QTime getInRoad()const{return this->inRoadData;}

	QString & nameStation(){return this->nameStationData;}
	QTime & timeEnd(){return this->timeEndData;}
	QTime & timeStart(){return this->timeStartData;}
	QTime & inRoad(){return this->inRoadData;}
private:
	QString nameStationData;
	QTime timeEndData;
	QTime timeStartData;
	QTime inRoadData;
};

#endif // TRAINROAD_H
